/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package plus.H5D3B5016.bean;


import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "BtcLog")
public class BtcLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;


	@Column(name = "id", isId = true,autoGen = false)
	private Long id;

	/**
	 * 买入时间
	 */
	@Column(name = "inDate")
	private Date inDate;

	/**
	 * 买入价格
	 */
	@Column(name = "inPrice")
	private Double inPrice;

	/**
	 * 买入余额
	 */
	@Column(name = "inMoney")
	private Double inMoney;

	/**
	 * 卖出时间
	 */
	@Column(name = "outDate")
	private Date outDate;

	/**
	 * 卖出价格
	 */
	@Column(name = "outPrice")
	private Double outPrice;
	/**
	 * 卖出余额
	 */
	@Column(name = "outMoney")
	private Double outMoney;
	/**
	 * buy=多 sell=空
	 */
	@Column(name = "direction")
	private String direction;
	/**
	 * 倍数
	 */
	@Column(name = "rate")
	private int rate;
	/**
	 * 下单金额
	 */
	@Column(name = "amount")
	private Double amount;
	/**
	 * btcusdt
	 */
	@Column(name = "txCurrency")
	private String txCurrency;

	/**
	 * 手续费
	 */
	@Column(name = "factorge")
	private Double factorge;

	@Column(name = "state")
	private int state;//0=成功下单 1=平仓成功


	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getInDate() {
		return inDate;
	}

	public void setInDate(Date inDate) {
		this.inDate = inDate;
	}

	public Double getInPrice() {
		return inPrice;
	}

	public void setInPrice(Double inPrice) {
		this.inPrice = inPrice;
	}

	public Double getInMoney() {
		return inMoney;
	}

	public void setInMoney(Double inMoney) {
		this.inMoney = inMoney;
	}

	public Date getOutDate() {
		return outDate;
	}

	public void setOutDate(Date outDate) {
		this.outDate = outDate;
	}

	public Double getOutPrice() {
		return outPrice;
	}

	public void setOutPrice(Double outPrice) {
		this.outPrice = outPrice;
	}

	public Double getOutMoney() {
		return outMoney;
	}

	public void setOutMoney(Double outMoney) {
		this.outMoney = outMoney;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public String getTxCurrency() {
		return txCurrency;
	}

	public void setTxCurrency(String txCurrency) {
		this.txCurrency = txCurrency;
	}

	public Double getFactorge() {
		return factorge;
	}

	public void setFactorge(Double factorge) {
		this.factorge = factorge;
	}
}
